<?php

require_once 'log/Log.class.php';
require_once 'common.php';

echo '<pre>';

$log = Log::instance();
$log->open('mylog.log', LogLevel::$ERROR);
try {
	
	$log->trace("my trace msg");
	$log->debug("my debug msg");
	$log->info("my info msg");
	$log->warn("my warn msg");
	$log->error("my error msg", new Exception("uje"));
	// $log->fatal("my fatal msg", __FILE__, __LINE__);
	
	$log->closeIfNecessary();
} catch(Exception $e) {
	$log->closeIfNecessary();
}

echo '</pre>';

?>